package org.com.coolfish.common.database.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

@Table(name = "kuyu_card_money")
@Entity
public class KuyuCardMoney extends IdEntity implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private Integer uid;
	private Integer card_id;
	private Integer type;
	private BigDecimal money;
	private BigDecimal oldmoney;
	private Date addtime;
	private String remarks;
	private String source;
	private Integer did;
	public KuyuCardMoney() {
		super();
	}
	public KuyuCardMoney(Integer uid, Integer card_id, Integer type, BigDecimal money, BigDecimal oldmoney,
			Date addtime, String remarks, String source, Integer did) {
		super();
		this.uid = uid;
		this.card_id = card_id;
		this.type = type;
		this.money = money;
		this.oldmoney = oldmoney;
		this.addtime = addtime;
		this.remarks = remarks;
		this.source = source;
		this.did = did;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Integer getCard_id() {
		return card_id;
	}
	public void setCard_id(Integer card_id) {
		this.card_id = card_id;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	public BigDecimal getOldmoney() {
		return oldmoney;
	}
	public void setOldmoney(BigDecimal oldmoney) {
		this.oldmoney = oldmoney;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	@Override
	public String toString() {
		return "KuyuCardMoney [uid=" + uid + ", card_id=" + card_id + ", type=" + type + ", money=" + money
				+ ", oldmoney=" + oldmoney + ", addtime=" + addtime + ", remarks=" + remarks + ", source=" + source
				+ ", did=" + did + "]";
	}
	
	
}
